package com.syscom.server.qd.util;

import com.syscom.frmcommon.util.ArithUtil;

public class QuotaCalculateUtil {
	private static QuotaCalculateUtil instance = new QuotaCalculateUtil();
	
	public static QuotaCalculateUtil getInstance() {
		return instance;
	}
	
	private QuotaCalculateUtil() {
	}
	
	public double calcQuotaWithRate(double dQuota, double dRate) {
		// 去除小數
		double dResult = 0;
		dResult = ArithUtil.mul(dQuota, dRate);
		long lResult = (long)dResult;
		return (double)lResult;
	}
}
